<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:td="http://tdisf" exclude-result-prefixes="td">
    <xsl:output omit-xml-declaration="yes" indent="no" />
    <xsl:template match="/" >
    
<xsl:variable name="partyIdentifier" select="normalize-space(td:Creditor/td:RawInformation/td:RawLine[td:RawCode/text()='PartyIdentifier']/td:Line/text())" />
<xsl:variable name="identifierCode" select="normalize-space(td:Creditor/td:RawInformation/td:RawLine[td:RawCode/text()='Identifier Code (BIC)']/td:Line/text())" />
<xsl:variable name="location" select="normalize-space(td:Creditor/td:RawInformation/td:RawLine[td:RawCode/text()='Location']/td:Line/text())" />
<xsl:variable name="nameAndAddressLine1" select="normalize-space(td:Creditor/td:RawInformation/td:RawLine[td:RawCode/text()='NameAndAddressLine1']/td:Line/text())" />
<xsl:variable name="nameAndAddressLine2" select="normalize-space(td:Creditor/td:RawInformation/td:RawLine[td:RawCode/text()='NameAndAddressLine2']/td:Line/text())" />
<xsl:variable name="nameAndAddressLine3" select="normalize-space(td:Creditor/td:RawInformation/td:RawLine[td:RawCode/text()='NameAndAddressLine3']/td:Line/text())" />
<xsl:variable name="nameAndAddressLine4" select="normalize-space(td:Creditor/td:RawInformation/td:RawLine[td:RawCode/text()='NameAndAddressLine4']/td:Line/text())" />


<xsl:if test="$partyIdentifier != ''"> 
<xsl:copy-of select="$partyIdentifier" />
</xsl:if>
<xsl:if test="$identifierCode != ''">
<br/><xsl:copy-of select="$identifierCode" />
</xsl:if>
<xsl:if test="$location != ''">
<br/><xsl:copy-of select="$location" />
</xsl:if>
<xsl:if test="$nameAndAddressLine1 != ''">
<br/><xsl:copy-of select="$nameAndAddressLine1" />
</xsl:if>
<xsl:if test="$nameAndAddressLine2 != ''">
<br/><xsl:copy-of select="$nameAndAddressLine2" />
</xsl:if>
<xsl:if test="$nameAndAddressLine3 != ''">
<br/><xsl:copy-of select="$nameAndAddressLine3" />
</xsl:if>
<xsl:if test="$nameAndAddressLine4 != ''">
<br/><xsl:copy-of select="$nameAndAddressLine4" />
</xsl:if>

    </xsl:template>
</xsl:stylesheet>